Automattic\WooCommerce\GoogleListingsAndAds\Product\WCProductAdapter D

Total Complexity 138
Dependencies 29
Dependents 5
Total lines 1,122
Lines of code 575
Logical lines of code 308
Comment lines 364
Methods 39
Properties 4

Methods 39

Method Rating Maintainability Complexity Lines of code
get_wc_product_sale_price_effective_date()
A
50 12 31
map_wc_product_sale_price()
A
49 9 31
get_wc_product_description()
A
49 9 30
get_product_taxonomy()
A
52 8 25
mapTypes()
S
51 7 26
map_wc_product_image()
S
52 7 25
map_wc_shipping_dimensions()
S
48 5 38
map_attribute_mapping_rules()
S
53 5 24
get_source()
S
56 5 18
rule_match_conditions()
S
57 5 16
map_gla_attributes()
S
60 4 13
get_custom_attribute()
S
60 4 13
get_product_field()
S
61 4 12
map_wc_product_price()
S
56 3 19
map_product_categories()
S
56 3 19
add_shipping_country()
S
57 3 18
load_validator_metadata()
S
44 1 47
validate_availability()
S
64 4 10
map_wc_product_shipping()
S
59 3 14
convert_product_types()
S
62 3 11
map_wc_availability()
S
63 3 11
map_wc_shipping_weight()
S
59 2 15
format_attribute()
S
63 3 10
validate_item_group_id()
S
69 3 7
remove_shipping_country()
S
65 3 9
shipping_country_exists()
S
65 3 9
map_woocommerce_product()
S
62 2 12
get_product_type_by_id()
S
64 2 9
map_wc_general_attributes()
S
66 2 9
override_attributes()
S
70 2 6
map_wc_prices()
S
74 1 5
setTargetCountry()
S
72 1 6
get_wc_product()
S
82 1 3
is_virtual()
S
72 1 5
is_variation()
S
80 1 3
map_tax_excluded()
S
71 1 5
get_google_product_offer_id()
S
77 1 3
map_wc_product_id()
S
75 1 4
get_taxonomy_term_names()
S
75 1 4